import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/icons/iconfont/iconfont.css'  //引入iconfont样式
import ElementPlus from 'element-plus' //引入ElementPlus组件
import 'element-plus/dist/index.css'  //引入element-plus样式
import 'nprogress/nprogress.css'    //引入进度条样式
import './mock/index'  //引入mock
import vueEsign from 'vue-esign'
//统一导入el-icon图片
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
app.use(ElementPlus)
app.use(vueEsign)
app.use(store)
app.use(router)
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
// app.config.globalProperties.$ElMessage = ElMessage;
